<?php if( $tpl['_header'] ){ include($_CFG['DIR_ADMIN_TPL'].'header.html'); }?>


<?php if( $tpl['_body'] == 'list' ){ ?>

    <?php if( $tpl['_bodysub'] != 'query' ){?>
    <div class="listtable-div" id="listtable-adminlog" onmouseover="ListTable.init(this.id,'modules/admin/admin_log.php','?act=list');">
        <form class="listtable-search" onsubmit="listtable_search(this);return false;">
            <table class="listtable-table">
            <tr>
                <td width="30"><i class="icon"></i></td>
                <td width="45"><h1>时间：</h1></td>
                <td width="210"><?php echo timecbox('datef'); ?><font style="color:#7f9db9;padding:4px">-</font><?php echo timecbox('datet'); ?></td>
                <td width="60"><h1>管理员：</h1></td>
                <td width="80"><input type="text" class="textbox" style="width:80px" name="admin"></td>
                <td width="60"><h1>关键字：</h1></td>
                <td width="100"><input type="text" class="textbox" style="width:100px" name="info"></td>
                <td style="padding-left:15px;"><input type="submit" value="搜 索" class="submit"/><input type="button" class="flush" onmouseover="combobox_mouseover(this)" onclick="ListTable.resetList()" title="初始化搜索"/></td>
            </tr>
            </table>
        </form>

        <div class="listtable-data">
    <?php }?>

            <table class="listtable-table" onmouseover="TableAct.moveHiLight(this);TableAct.choiceHiLight(this);">
            <tr>
                <th width="14%">IP</th>
                <th width="20%">时间</th>
                <th width="10%">管理员</th>
                <th width="56%">操作</th>
            </tr>
            <?php if( !empty($tpl['list']['data']) ){ foreach( $tpl['list']['data'] AS $r ){?>
            <tr align="center">
                <td><?php echo $r['ip']; ?></td>
                <td><?php echo date('Y-m-d H:i:s', $r['in_time']); ?></td>
                <td onmousemove="tagtitle(event,'帐号: <?php e($r['admin_username'],'hstr'); ?>')"><?php e($r['admin_name'],'html'); ?></td>
                <td align="left" style="background-color:#FFFDDF; padding-left:8px;" onmousemove="tagtitle(event,'<?php e($r['info'],'hstr'); ?>')"><?php e($r['info'],'html'); ?></td>
            </tr>
            <?php }}else{?>
            <tr><td colspan="4"><div class="tips-div"><span>无数据</span></div></td></tr>
            <?php }?>
            </table>

            <div class="listtable-footer">
                <?php if( !empty($tpl['list']['data']) ){?>
                <div class="action">
                    <div class="hddl" onmouseover="this.className+=' hddlon'" onmouseout="this.className='hddl'">
                        <a href="javascript:void(0)">删除<span>&nbsp;</span></a><div>
                            <a href="javascript:void(0);" onclick="ListTable.del(this,500,'确定删除前500条日志？')">前500条</a>
                            <a href="javascript:void(0);" onclick="ListTable.del(this,200,'确定删除前200条日志？')">前200条</a>
                            <a href="javascript:void(0);" onclick="ListTable.del(this,100,'确定删除前100条日志？')">前100条</a></div>
                    </div>
                </div>
                <div class="pager"><?php echo $tpl['list']['pager']['html']; ?></div>
                <?php }?>
            </div>

    <?php if( $tpl['_bodysub'] != 'query' ){?>
        </div>
    </div>
    <?php }?>


<?php } ?>